package com.blog.cloud.auth.oauth.properties;

import lombok.Getter;
import lombok.Setter;

import java.time.Duration;

@Getter
@Setter
public class AuthCacheProperties {
    private AuthCacheProperties.CacheType type;
    private String prefix;
    private Duration timeout;

    public AuthCacheProperties() {
        this.type = AuthCacheProperties.CacheType.DEFAULT;
        this.prefix = "JUSTAUTH::STATE::";
        this.timeout = Duration.ofMinutes(3L);
    }

    public enum CacheType {
        DEFAULT,
        REDIS,
        CUSTOM;
    }

}
